There seem to be quite a few questions about pens, I'll place the info here until someone suggests better place.
From: "Stefan Stuntz" 
Date: 	Fri, 12 Apr 1996 10:18:20 +0100
X-Mailer: IntuiNews 1.3b Beta 7 (2.2.96)
Subject: Re: How to get MUI bg_pen?
Message-Id: <81321067@magic.informatik.tu-muenchen.de>
Organization: Home of MUI
Resent-Message-Id: <"CEPKo2.0.9N1.DuuRn"@sunsite>
Resent-From: mui@sunsite.Informatik.RWTH-Aachen.DE
Reply-To: mui@sunsite.Informatik.RWTH-Aachen.DE
X-Mailing-List:  archive/latest/1024
X-Loop: mui@sunsite.informatik.rwth-aachen.de
Precedence: list
Resent-Sender: mui-request@sunsite.Informatik.RWTH-Aachen.DE
Content-Type: text
Content-Length: 120
X-Lines: 9
Status: RO

Hans Henrik Happe wrote

> How do you get MPEN_BACKGROUND?

I read dri->dri_Pens[BACKGROUNDPEN].

--
Greetings, Stefan


From: "Stefan Stuntz" 
Date: 	Tue, 16 Apr 1996 01:07:18 +0100
X-Mailer: IntuiNews 1.3b Beta 7 (2.2.96)
Subject: Re: MUI Pens ?
Message-Id: <81321166@magic.informatik.tu-muenchen.de>
Organization: Home of MUI
Resent-Message-Id: <"T7-mW2.0.aV6.IfhSn"@sunsite>
Resent-From: mui@sunsite.Informatik.RWTH-Aachen.DE
Reply-To: mui@sunsite.Informatik.RWTH-Aachen.DE
X-Mailing-List:  archive/latest/1063
X-Loop: mui@sunsite.informatik.rwth-aachen.de
Precedence: list
Resent-Sender: mui-request@sunsite.Informatik.RWTH-Aachen.DE
Content-Type: text
Content-Length: 284
X-Lines: 11
Status: RO

Stefan Sommerfeld wrote

> I like to know how MUI finds out the Halfshine and Halfshadow pens?
> Is it a simple ObtainBestPen ?

Depends. if env:MagicWB >= 2 and Screen==WORKBENCH, MUI uses the
predefined MagicWB palette positions. Otherwise it uses ObtainPen.

--
Greetings, Stefan


From: "Stefan Stuntz" 
Date: 	Tue, 23 Apr 1996 23:20:19 +0100
X-Mailer: IntuiNews 1.3b Beta 7 (2.2.96)
Subject: Re: MPEN_XXX ?
Message-Id: <81321282@magic.informatik.tu-muenchen.de>
Organization: Home of MUI
Resent-Message-Id: <"6HsV43.0.sj6.NdKVn"@sunsite>
Resent-From: mui@sunsite.Informatik.RWTH-Aachen.DE
Reply-To: mui@sunsite.Informatik.RWTH-Aachen.DE
X-Mailing-List:  archive/latest/1145
X-Loop: mui@sunsite.informatik.rwth-aachen.de
Precedence: list
Resent-Sender: mui-request@sunsite.Informatik.RWTH-Aachen.DE
Content-Type: text
Content-Length: 325
X-Lines: 13
Status: RO

Gilles.MASSON wrote in article <199604231449.QAA25339@alto.unice.fr>:
> 
> _pens(obj) give the field  UWORD *mri_Pens;  of the struct MUI_RenderInfo.
> 
> Is mri_Pens an array containing pen values for MPEN_XXX
> so  _pens(obj)[MPEN_HALFSHINE]  is the pen number for
> the MPEN_HALFSHINE color ?

Yes.

--
Greetings, Stefan

From: "Stefan Stuntz" 
Date: 	Tue, 30 Apr 1996 18:29:53 +0100
X-Mailer: IntuiNews 1.3b Beta 7 (2.2.96)
Subject: Re: Pen - Settings in PSI
Message-Id: <81321354@magic.informatik.tu-muenchen.de>
Organization: Home of MUI
Resent-Message-Id: <"Dw5Jr3.0.Pn1.zaaXn"@sunsite>
Resent-From: mui@sunsite.Informatik.RWTH-Aachen.DE
Reply-To: mui@sunsite.Informatik.RWTH-Aachen.DE
X-Mailing-List:  archive/latest/1182
X-Loop: mui@sunsite.informatik.rwth-aachen.de
Precedence: list
Resent-Sender: mui-request@sunsite.Informatik.RWTH-Aachen.DE
Content-Type: text
Content-Length: 418
X-Lines: 14
Status: RO

Adolf Markus Berthold wrote

> What has happend to the facility of PSI to configure MUI's pens
> for already existing public screens ?
> In v3.1 it worked fine (didn't it?).

It was removed, too many people didnt understand it. MUI now
automatically allocates halfshine and halfshadow somewhere between shine
and shadow. Future MUIs will have a better approach to all this
screen-related stuff.

--
Greetings, Stefan


From: "Stefan Stuntz" 
Date: 	Mon, 24 Jun 1996 19:23:38 +0100
X-Mailer: IntuiNews 1.3b Beta 7 (2.2.96)
Subject: Re: save color settings
Message-ID: <81322828@magic.informatik.tu-muenchen.de>
Organization: Home of MUI
Resent-Message-ID: <"tHlkV3.0.mR6.9ikpn"@susi>
Resent-From: mui@sunsite.Informatik.RWTH-Aachen.de
Reply-To: mui@sunsite.Informatik.RWTH-Aachen.de
X-Mailing-List:  archive/latest/1627
X-Loop: mui@sunsite.informatik.rwth-aachen.de
Precedence: list
Resent-Sender: mui-request@sunsite.Informatik.RWTH-Aachen.de
Content-Type: text
Content-Length: 400
X-Lines: 14
Status: RO

Jesper Jonsson wrote

> I would have to agree that this is a problem. The weakness of the
> pendisplay/poppen classes is that they don't allow the colors to be set in
> any other way that specifying a black-box structure, 

From mui.h:

#define MUIM_Pendisplay_SetRGB 0x8042c131 /* V13 */
struct  MUIP_Pendisplay_SetRGB { ULONG MethodID; ULONG red; ULONG green; ULONG blue; };

--
Greetings, Stefan